#pragma once
#include "Particle.h"

class LinearSpring
{
public:

	Particle* local; //particle at local end
	Particle* remote; //particle at remote end
	float equilibirum; //equilibirum length
	float k; //spring constant (N/m)
	float minL, maxL; //minimum and maximum length

	LinearSpring(void);
	LinearSpring(float _length, float _minL, float _maxL, float _k, Particle* _local, Particle* _remote);

	float getLength();

	void update(int delta);
};

